using AAA.Models;
using Microsoft.EntityFrameworkCore;

namespace AAA.Db
{
    public class DemoDb:DbContext
    {
        private readonly string conString="server=.;database=AAA;uid=sa;pwd=123456;";
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(conString);
        }
        public DbSet<GradeClass> GradeClasse{get;set;}
        public DbSet<Student> Student{get;set;}
    }
}